﻿<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Blazing.BusinessObjects" namespace="Blazing.BusinessObjects.Cms" >
	<class name="MenuItem" table="menuitems" lazy="false" dynamic-insert="true" dynamic-update="true">

		<id name="ID" column="menuitemid" type="Int32">
			<generator class="native" />
		</id>
		<timestamp column="rowstamp" name="RowStamp" />

		<many-to-one name="Menu" column="menuid" class="Menu" not-null="true" />
		<property name="Label" length="100" not-null="true" />
		<property name="Title" length="255" />
		<many-to-one name="Parent" column="parentid" class="MenuItem" />
		<property name="SortOrder" type="Int32" />

    <set name="MenuItemTaxonomyTags" table="menuitemtaxonomytags">
      <key column="menuitemid"/>
      <many-to-many class="Blazing.BusinessObjects.Tagging.TaxonomyTag" column="taxonomytagid"/>
    </set>

  </class>
</hibernate-mapping>
